[WPF] Format datagrid row foreground depends on data
Posted
by ktutnik
on Stack Overflow
See other posts from Stack Overflow
or by ktutnik
Published on 2010-05-10T23:35:22Z
Indexed on
2010/05/10
23:54 UTC
Read the original article
Hit count: 528
wpf
|wpftoolkit
Hi everyone,
Im new in wpf, i though it was an easy task. i searched in the internet but not lucky to found any help regarding this problem.
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Foreground" Value="{Binding Converter=conditionToColorConverter}"/>
</Style>
the problem is how to pass the row data to the value.. the converter will return RED or BLACK color when specified properties of the row data match some category.
or maybe there is an easy way to do that?
Thanks in advance Kin
© Stack Overflow or respective owner